export default {
	state:{
		token:'',
		userInfo:{},
		isLogin:false
	},
	mutations:{
		setToken(state,token) {
			state.token = token
		},
		setUserInfo(state,info) {
			state.userInfo = info
			state.isLogin = true
		},
		clearUserInfo(state) {
			state.userInfo = {}
			state.token = ''
			state.isLogin = false
		}
	}
}